-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue-2011 - Set configuration for readtimeout and set timeout on ES … #2018
base: 2.10.x
Are you sure you want to change the base?
Conversation
Sounds great ! |
*/ | ||
public function getReadTimeout() | ||
{ | ||
return (int) $this->getElasticsearchClientConfigParam('timeout'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change param name to 'read_timeout' here if we change it in the system.xml ?
Hello @alin1918, Thanks for the PR ! Feel free also to squash your commits and use the prefix "Fixes #2011 " in your commit message. Regards, |
Hi, the reason why I let it as "timeout" instead of "read_timeout", is because is already defined in etc/config.xml as "timeout" (but not used), the fact that the "timeout" name is being use in the library that creates the curl object, and also that the curl option is called being defined is CURLOPT_TIMEOUT. In etc/adminhtml/system.xml the label states that is "Read Timeout". Just let me know and I can change it. Thanks. |
@rbayet For example for frontend use: 2-3 seconds should be ok. We are using this patch in production, already |
I was thinking about that test case of reindexing on a huge catalog and also for some particular operations. Regards, |
@rbayet I will do some tests to see how will this work with a big reindexing and see if there is an easy fix for that. |
…client #2011